import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from "axios";


Vue.config.productionTip = false

// 引入vant组件
import {Sticky,PullRefresh,Toast,List,Empty,Overlay,Tab,Tabs,Loading,Lazyload,ImagePreview,Popup,Icon,Uploader,Popover,Slider} from 'vant';
Vue.use(Sticky)
.use(PullRefresh)
.use(Toast)
.use(List)
.use(Empty)
.use(Overlay)
.use(Tab)
.use(Tabs)
.use(Loading)
.use(Lazyload)
.use(ImagePreview)
.use(Popup)
.use(Icon)
.use(Uploader)
.use(Popover)
.use(Slider)

// 引入swiper cnpm i swiper@5 -S
import "swiper/css/swiper.min.css"

Vue.prototype.HOST = 'http://127.0.0.1:3000'
Vue.config.productionTip = false
Vue.prototype.$axios = axios;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
